package com.ty.onlinemusicserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.onlinemusicserver.common.R;
import com.ty.onlinemusicserver.model.domain.Consumer;
import com.ty.onlinemusicserver.model.request.ConsumerRequest;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

public interface ConsumerService extends IService<Consumer> {
    R allUser();
    R deleteUser(Integer id);
    R userOfId(Integer id);
    boolean verityPasswd(String username, String password);
    R loginStatus(ConsumerRequest loginRequest, HttpSession session);
    boolean existUser(String username);
    //用户注册
    R addUser(ConsumerRequest registryRequest);
    //用户资料修改
    R updateUserMsg(ConsumerRequest updateRequest);
    R updateUserAvator(MultipartFile avatorFile, int id);
    //更新密码
    R updatePassword(ConsumerRequest updatePasswordRequest);

}
